package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.ModelOars;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.sypq.params.FileParams;
import com.jhgsys.internal.sypq.params.OarsAddParams;
import com.jhgsys.internal.sypq.params.WechatFinishParams;
import com.jhgsys.internal.sypq.params.WechatModelParams;
import com.jhgsys.internal.sypq.vo.ProjectVO;
import com.jhgsys.internal.sypq.vo.WechatOarsModelVO;

import java.util.List;

/**
 * 桨模 Service接口
 *
 * @author ganjun
 * @date 2024-11-18 22:28:43
 */
public interface IModelOarsService extends IService<ModelOars> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param request QueryRequest
     * @param modelOars modelOars
     * @return IPage<ModelOars>
     */
    IPage<ModelOars> findModelOarsPage(QueryRequest request, String demondFinishTime, String name, String statusSearch, String code);

    /**
     * 导出
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param request QueryRequest
     * @return IPage<ModelOars>
     */
    List<ModelOars> export(QueryRequest request, String demondFinishTime, String name, String statusSearch, String code);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param modelOars modelOars
     * @return List<ModelOars>
     */
    List<ModelOars> findModelOarsList(ModelOars modelOars);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-18 22:28:43
    * @param id
    * @return ModelOars
    */
    ModelOars findModelOarsById(String id);

    /**
     * 根据桨模id获取船模图纸附件信息
     * @param id
     * @return
     */
    List<FileParams> getModelShipAttachsByOarsId(String id, String fileType);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param params
     */
    void createModelOars(OarsAddParams params);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param params
     */
    void updateModelOars(OarsAddParams params);

    /**
     * 完成
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param params
     */
    void finishModelOars(OarsAddParams params);

    /**
     * 企业微信端完成
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param params
     */
    void finishForWechat(WechatFinishParams params);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-18 22:28:43
     * @param modelOars modelOars
     * @param modelOarsIds modelOarsIds
     */
    boolean deleteModelOars(ModelOars modelOars, String modelOarsIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-18 22:28:43
    * @param modelOarsIds modelOarsIds
    */
    boolean physicallyDeleteModelOars(String modelOarsIds);

    /**
     * 获取项目列表
     * @return
     */
    List<ProjectVO> getProjectList();

    List<WechatOarsModelVO> getOarsModelList(WechatModelParams params);

    /**
     * 根据code获取桨模信息
     * @param code
     * @return
     */
    ModelOars getModelOarsByCode(String code);
}
